<!---->
<%= form_for(:session, :url => {:action => 'update'}, :method => 'put', :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to '装备分类列表', sorts_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">分类名称</label>
    <div class="controls">
    <%= t.text_field :title, :value => @sort.title %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">状态</label>
    <div class="controls">
      <%= radio_button_tag 'session[status]',0, @sort.status == 0 ? true : false, :class => 'new'  %>启用
      <%= radio_button_tag 'session[status]',1, @sort.status == 1 ? true : false, :class => 'new'  %>禁用
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <input type="hidden" id="id" name="id" value="<%= @sort.id %>">
      <button type="submit" class="btn">修改</button>
    </div>
  </div>
</fieldset>
<% end %>
<!---->
